﻿using Arim.S4.Api;
using Arim.S4.Client.Base.Dto;
using System.Collections.Generic;

namespace Arim.S4.Client.Service
{
    public class ChemicalAppService : BaseAppService<CraneDto>
    {
        public ChemicalAppService() : base(Urls.CHEMICALS.BASE) { }

        public IList<ChemicalIronDto> GetIronChemical(string hotNo)
        {
            return this.BuildRestApi<ChemicalIronDto>().GetList(string.Format(Urls.CHEMICALS.IRON, hotNo));
        }

        public IList<ChemicalSteelDto> GetSteelChemical(string heatNo)
        {
            return this.BuildRestApi<ChemicalSteelDto>().GetList(string.Format(Urls.CHEMICALS.STEEL, heatNo));
        }
    }
}
